package com.wyz.saas.common.set

abstract class AbstractAppSetDescriptorMenu<K, V> : AbstractAppSetDescriptor<Map<K, V>>() {

    abstract fun getMenu(): Map<K, V>

    override fun validate(value: Any?): Boolean {
        if (value != null ) {
            return getMenu().values.contains((value as V))
        }
        return false
    }
}